package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BusinessMapper;
import com.ruoyi.system.domain.Business;
import com.ruoyi.system.service.IBusinessService;

/**
 * 业务Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-29
 */
@Service
public class BusinessServiceImpl implements IBusinessService 
{
    @Autowired
    private BusinessMapper businessMapper;

    /**
     * 查询业务
     * 
     * @param bsId 业务主键
     * @return 业务
     */
    @Override
    public Business selectBusinessByBsId(Long bsId)
    {
        return businessMapper.selectBusinessByBsId(bsId);
    }

    /**
     * 查询业务列表
     * 
     * @param business 业务
     * @return 业务
     */
    @Override
    public List<Business> selectBusinessList(Business business)
    {
        return businessMapper.selectBusinessList(business);
    }

    /**
     * 新增业务
     * 
     * @param business 业务
     * @return 结果
     */
    @Override
    public int insertBusiness(Business business)
    {
        return businessMapper.insertBusiness(business);
    }

    /**
     * 修改业务
     * 
     * @param business 业务
     * @return 结果
     */
    @Override
    public int updateBusiness(Business business)
    {
        return businessMapper.updateBusiness(business);
    }

    /**
     * 批量删除业务
     * 
     * @param bsIds 需要删除的业务主键
     * @return 结果
     */
    @Override
    public int deleteBusinessByBsIds(Long[] bsIds)
    {
        return businessMapper.deleteBusinessByBsIds(bsIds);
    }

    /**
     * 删除业务信息
     * 
     * @param bsId 业务主键
     * @return 结果
     */
    @Override
    public int deleteBusinessByBsId(Long bsId)
    {
        return businessMapper.deleteBusinessByBsId(bsId);
    }
}
